package com.liuyang.second.concurrency.chapter3;

import java.util.Arrays;

public class Test
{
    public static void main(String[] args) {
//        Subject sb = new Subject();
//        new BinaryObServer(sb);
//        new OctObServer(sb);
//
//        System.out.println("=========================");
//        sb.setState(10);
//        System.out.println("=========================");
//        sb.setState(10);
//        System.out.println("=========================");
//        sb.setState(12);

        new ThreadLifeCycleObserver().concurrentQuery(Arrays.asList("1","2"));
    }
}
